<div id="main">
    <div id="contents">
        <form method="post" action="#" name="filters">
            <fieldset>
                <legend>
                    <label sid="api.table1_title"></label>
                </legend>
                <div class="frame_tab_layer">
                    <table class="cmenutitle" width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr id="tr605">
                            <td class="frame_tab_left">
                                <span id="img605" class="errormsg">&nbsp;</span>
                                <label>
                                    <label sid="api.table1_td1"></label>
                                </label>
                            </td>
                            <td id="td605" class="frame_tab_right">
                                <input type="text" value="" name="id605">
                                <span id="msg605">&nbsp;</span>
                            </td>
                        </tr>
                        <tr id="tr606">
                            <td class="frame_tab_left">
                                <span id="img606" class="errormsg">&nbsp;</span>
                                <label>
                                    <label sid="api.table1_td2"></label>
                                </label>
                            </td>
                            <td id="td606" class="frame_tab_right">
                                <input type="text" value="" name="id606">
                                <span id="msg606">&nbsp;</span>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
            <fieldset>
                <legend>
                    <label sid="ivr_menu.api"></label>
                </legend>
                <div class="frame_tab_layer">
                    <table class="cmenutitle" width="100%" cellspacing="0" cellpadding="0" border="0">
                        <tbody>
                        <tr>
                            <td class="frame_tab_right" colspan="2">
                                <input id="api_phone" class="button" type="button" name="phone" sid="api.table2_td1">
                                <input id="api_ipphone" class="button" type="button" name="ipphone" sid="api.table2_td2">
                                <input id="api_trunk" class="button" type="button" name="trunk" sid="api.table2_td3">
                                <input id="api_iptrunk" class="button" type="button" name="iptrunk" sid="api.table2_td4">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
            <div class="submitFooter">
                <script type="text/javascript">
                    var buttonInfo = submitFooterButton(1,0);
                    $(".submitFooter").html(buttonInfo);
                </script>
            </div>
        </form>
    </div>
</div>
<br>
<div id="helpContainer">
    <div id="help">
        <div>
            <h2>
                <label sid="share.help"></label>
            </h2>
        </div>
        <div id="helpBody">
            <dl>

                <dt class="term">
                    <label sid="ivr_menu.api"></label>
                </dt>
                <dd class="definition">
                    <label sid="api.table1_desc"></label>
                </dd>
                <dt class="term">
                    <label sid="api.table1_td1"></label>
                </dt>
                <dd class="definition">
                    <label sid="api.table1_td1Tip"></label>
                </dd>
                <dt class="term">
                    <label sid="api.table1_td2"></label>
                </dt>
                <dd class="definition">
                    <label sid="api.table1_td2Tip"></label>
                </dd>

            </dl>

        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function(){
        lineshow("4000");lineshow("4001");
        var nonames = new Array("submit","phone","ipphone","trunk","iptrunk");
        var sendtext = getSendText(nonames);
        DataRequest("get_json",sendtext,function(data){
            getResult(nonames,data);
        });


        $("[name=submit]").click(function () {
            $(".errormsg").html('');
            var settext = getSetText(nonames);
            settext=settext.replace(/\#/g,"%23");
            submitform(modules["set_data"],settext);
        });

        $(".button:lt(4)").bind("click",function(){
            var url =$(this).attr("id")+".htm";
            loadNewHtml(url);
        });
    });

</script>
